#ifndef __FFB_CONFIG_H
#define __FFB_CONFIG_H
#include "main.h"

#include "Axis.h"

#define FLASH_TRY_TIMES         10

#define CMD_UNKNOWN             0
#define CMD_GET                 1
#define CMD_SET                 2
#define CMD_INFO                3



enum
{
    degrees = 0,
    power,
    fxratio,
    friction,
    damper,
    inertia,
    idlespring,
    endstop,
    maxspeed,
    invertx,
    cffilter,
    frfilter,
    dafilter,
    infilter,
    frgains ,
    dagains ,
    ingains ,
    spgains ,
    pfgains,
    swver,
    productid,
    zeroenc,
    reboot
};

struct Axis;

void CDC_Configure_Init(struct Axis* config,HidFFB* ffb);
void FFB_Config_Process(uint8_t* str,int strLen);


#endif


